package com.dz.Incubator.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 统一定义id的entity基类. 基类统一定义id的属性名称、数据类型、列名映射及生成策略.
 */
@Data
public abstract class BaseEntity implements Serializable {
	/**
	 * 实体基类
	 */
	private static final long serialVersionUID = -495258707113069020L;
	/*记录id*/
	protected Long id;
	/*租户id*/
	protected String tenantId;


//	@JsonFormat(pattern = "yyyy-MM-dd DD:hh:mm")
	protected Date createTime;

//	@JsonFormat(pattern = "yyyy-MM-dd DD:hh:mm")
	protected Date updateTime;

	protected Integer delTag;

	/*记录创建人id*/
	protected Long creatorId;
	/*记录操作人id*/
	protected Long operatorId;

}
